// 登录接口携带参数类型
export interface loginFormData {
    username: string,
    password: string
}

// 全部接口返回数据类型，用于继承
export interface ResponseData {
    code: number,
    message: string,
    ok: boolean
}

// 登录接口返回数据类型
export interface loginResponseData extends ResponseData {
    data: string,
}

// 获取用户信息数据类型
export interface userInfoResponseData extends ResponseData {
    data: {
        routes: string[],
        buttons: string[],
        roles: string,
        name: string,
        avatar: string
    }
}